package com.mti.app.model.business
{
	import mx.rpc.AsyncToken;
	import mx.rpc.IResponder;
	import mx.rpc.http.HTTPService;

	public class LoadXMLDelegate
	{
		private var responder:IResponder;
		private var service:HTTPService;
		
		public function LoadXMLDelegate(responder:IResponder, url:String)
		{
			this.service = new HTTPService();
			this.service.resultFormat = 'xml';
			this.service.url = url;
			
			this.responder = responder;
		}
		
		public function load() : void
		{
			var token:AsyncToken = service.send();
			
			token.addResponder(this.responder);
		}
	}
}